
	 <script type="text/javascript">
      google.load('visualization', '1', {packages: ['corechart']});
    </script>
    <script type="text/javascript">
      function drawVisualization() {
        // Some raw data (not necessarily accurate)
        var data = google.visualization.arrayToDataTable([
          ['Month', 'Total case id', 'Diagnosis',  'Repair'],
          ['<?php echo date('M');?>',  <?php echo $no_case;?>,<?php echo $no_diagnosis;?>,<?php echo $no_repair;?>]
        ]);

        var options = {
          title : 'No. Of Case ID',
          vAxis: {title: "Case ID"},
          hAxis: {title: "Month"},
          seriesType: "bars",
          series: {5: {type: "line"}}
        };

        var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
        chart.draw(data, options);
      }
      google.setOnLoadCallback(drawVisualization)
	  </script>
	 
   <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Type', ' per Day'],
          ['Warranty',     <?php echo $no_warranty;?>],
          ['Non-warranty',      <?php echo $no_nonwarranty;?>]
          
        ]);

        var options = {
          title: 'Total No. OF Warranty and Non-Warranty Case ID in <?php echo date('M');?>'
        };

        var chart = new google.visualization.PieChart(document.getElementById('pie_chart'));
        chart.draw(data, options);
      }
    </script>

			
<div class="row-fluid" id="main1">
<div class="span12 pad_all">
<div id="padd" class="span2">
	<div><img src="<?php echo base_url()?>/user_image/<?php echo $image->name;?>"  width="175" height="200" alt="edit" ></div>
			     <a  href="<?php echo site_url()?>/engineer/engineerDashboard/update_profile" >change</a><br><br>

<br/>

<br>

</div>
		
			<div class="span10">
			       <div class="span12 pad_all">
			
				<a href="<?php echo site_url()?>/engineer/diagnosis/new_assigned" class="dashboard-module">
                	<img src="<?php echo base_url()?>/assets/images/icon_users.png"  width="40" height="40" alt="edit" />
                	<span>New Diagnosis</span>
                </a>
					
            	<a href="<?php echo site_url()?>/engineer/diagnosis/ongoing_process" class='dashboard-module'>
                	<img src="<?php echo base_url()?>/assets/images/folder_open.png"  width="40" height="40" alt="edit" />
                	<span>On Going Diagnosis</span>
                </a>
				
				<a href="<?php echo site_url()?>/engineer/diagnosis/dispatch_view" class="dashboard-module">
                	<img src="<?php echo base_url()?>/assets/images/icon_reports.png"  width="40" height="40" alt="edit" />
                	<span>Completd Diagnosis </span>
                </a>
                 
                <a href="<?php echo site_url()?>/engineer/repair/new_repair" class="dashboard-module">
                	<img src="<?php echo base_url()?>/assets/images/Crystal_Clear_settings.gif" tppabs="http://www.xooom.pl/work/magicadmin/images/Crystal_Clear_settings.gif" width="40" height="40" alt="edit" />
                	<span>New Repair</span>
                </a>
                <a href="<?php echo site_url()?>/engineer/repair/ongoing_process" class="dashboard-module">
                	<img src="<?php echo base_url()?>/assets/images/icon_edit.png" width="40" height="40" alt="edit" />
                	<span>On-Going Repair</span>
                </a>
                   
                <a href="<?php echo site_url()?>/engineer/repair/completed_repair " class="dashboard-module">
                	<img src="<?php echo base_url()?>/assets/images/Crystal_Clear_stats.gif" tppabs="http://www.xooom.pl/work/magicadmin/images/Crystal_Clear_stats.gif" width="40" height="40" alt="edit" />
                	<span>Completed Repair</span>
                </a>

                
            
        </div>
            
		
		</br></br>
		
	<table class="zebra">
  <caption> Todays Case Detail</caption>
		<thead>
        	<tr>
				<th>SL No.</th>
				<th>Case No.</th>
				<th>Under</th>
				<th>For</th>
				<th> Status</th>
				
            </tr>
		</thead>
        <tbody>
		<?php $count=1;?>
		<?php foreach ($tabled as $tables){?>
        	<tr> <td><?php echo $count;?></td>
            	<td><?php echo $tables->case_no;?></td>
				<td><?php echo "Warranty";?></td>
                <td><?php if($tables->status_id<4)echo "Diagnosis"; else echo "Repair"?></td>
                <td><?php $data=$tables->status_id; if($data==3 OR $data==10){echo"Completed";} else {echo "Under Process";}?></td>
				
            </tr> 
			<?php $count=$count+1;?>
            <?php } ?>
		<?php foreach ($tabler as $tables){?>
        	<tr> <td><?php echo $count;?></td>
            	<td><?php echo $tables->case_no;?></td>
				<td><?php echo "Warranty";?></td>
                <td><?php if($tables->status_id<4)echo "Diagnosis"; else echo "Repair"?></td>
                <td><?php $data=$tables->status_id; if($data==3 OR $data==10){echo"Completed";} else {echo "Under Process";}?></td>
				
            </tr> 
			<?php $count=$count+1;?>
            <?php } ?>	
		<?php foreach ($table2d as $tables){?>
        	<tr> <td><?php echo $count;?></td>
            	<td><?php echo $tables->case_no;?></td>
				<td><?php echo "Non-Warranty";?></td>
                <td><?php if($tables->status_id<4)echo "Diagnosis"; else echo "Repair"?></td>
                <td><?php $data=$tables->status_id; if($data==3 OR $data==11){echo"Completed";} else {echo "Under Process";}?></td>
				
            </tr> 
			<?php $count=$count+1;?>
            <?php } ?>
			<?php foreach ($table2r as $tables){?>
        	<tr> <td><?php echo $count;?></td>
            	<td><?php echo $tables->case_no;?></td>
				<td><?php echo "Non-Warranty";?></td>
                <td><?php if($tables->status_id<4)echo "Diagnosis"; else echo "Repair"?></td>
                <td><?php $data=$tables->status_id; if($data==3 OR $data==11){echo"Completed";} else {echo "Under Process";}?></td>
				
            </tr> 
			<?php $count=$count+1;?>
            <?php } ?>
        </tbody>
	</table>



			</br>
			<div class="row-fluid">
			
			
<div class="span6" id="chart_div" style="width:48%; height:400px; "></div>
	<div class="span6" id="pie_chart"  style="width: 49%; height:400px;" ></div>
</div>
				</div>

		</div>	</div>	